<include  file='Public:header'/>
<div class="local">
    当前位置:  站点基本设置
</div>
<div class="action">
    <em>注意：</em>这个设置和全局有关系
</div>
<div class="listBox clfx">              
    <div class="cl"></div>
    <div class="menuManage">
        <form  target="simpleO2O_frm" action="{:U('setting/site')}" method="post">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right">LOGO:</td>
                    <td>
                        <div style="width: 300px; height: 100px; float: left;">
                            <input type="hidden" name="data[logo]" value="{$CONFIG.site.logo}" id="data_photo" />
                            <input id="photo_file" name="photo_file" type="file" multiple="true" value="" />
                        </div>
                        <div style="width: 300px; height: 100px; float: left;">
                            <img id="photo_img" width="200" height="80"  src="{$CONFIG.site.logo|default='default.jpg'}" />
                        </div>
                        <script type="text/javascript" src="__ROOT__/Asset/Manage/js/uploadify/jquery.uploadify.min.js?t={$nowtime}"></script>

                        <link rel="stylesheet" href="__ROOT__/Asset/Manage/js/uploadify/uploadify.css">
                        <script>
                                $("#photo_file").uploadify({
                                    'swf'      : '__ROOT__/Asset/Manage/js/uploadify/uploadify.swf?t={$nowtime}',
                                    'uploader' : '{:U("Attachment/uploadFile",array("model"=>"setting"))}',
                                    'cancelImg' : '__ROOT__/Asset/Manage/js/uploadify/uploadify-cancel.png',
                                    'buttonText' : '上传网站LOGO',
                                    'fileTypeExts': '*.gif;*.jpg;*.png',
                                    'queueSizeLimit':1,
                                    'onUploadSuccess' : function(file, data, response) {
                                        $("#data_photo").val(data);
                                        $("#photo_img").attr('src',''+data).show();
                                    }
                                });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right">icp备案：</td>
                    <td>
                        <input type="text" name="data[icp]" value="{$CONFIG.site.icp}" class="manageInput " />
                    </td>
                </tr>


                <tr>
                    <td align="right">站点标题：</td>
                    <td>
                        <input type="text" name="data[title]" value="{$CONFIG.site.title}" class="manageInput " />
                    </td>
                </tr>
                <tr>
                    <td align="right">站点关键字：</td>
                    <td>
                        <textarea name="data[keyword]" cols="50" rows="5">{$CONFIG.site.keyword}</textarea>
                    </td>
                </tr>

                <tr>
                    <td align="right">站点描述：</td>
                    <td>
                        <textarea name="data[description]" cols="50" rows="5">{$CONFIG.site.description}</textarea>
                    </td>
                </tr>
                <tr>
                    <td align="right">统计代码：</td>
                    <td>
                        <textarea name="data[tongji]" cols="50" rows="5">{$CONFIG.site.tongji}</textarea>
                    </td>
                </tr>
                <tr>
                    <td align="right">城市名称：</td>
                    <td>
                        <input type="text" name="data[cityname]" value="{$CONFIG.site.cityname}" class="manageInput " />
                    </td>
                </tr>
                <tr>
                    <td align="right">城市中心地图坐标：</td>
                    <td>
                        	经度  <input type="text" name="data[lng]" value="{$CONFIG.site.lng}" class="manageInput " />
                        	纬度 <input type="text" name="data[lat]" value="{$CONFIG.site.lat}" class="manageInput " />
                    </td>
                </tr>
                <tr>
                    <td align="right"></td>
                    <td>
                        <input type="submit" class="remberSubmit" value="确认保存"  />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <include  file='Public:footer'/>       